﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPWP.OpinionPoll
{
    public class PollVote
    {
        public int PollID
        {
            get {

                int start = Title.IndexOf('-');
                string poll = Title.Substring(start + 1);
                return Convert.ToInt32(poll);
            }
        }
        
        public int ID { get; set; }
        public string Title { get; set; }
        public string AnswerPicked { get; set; }
        public DateTime Created { get; set; }
        public string IPAddress { get; set; }
        public string CreatedBy { get; set; }
    }
}
